package Grantsfire::Schema::Entry;

use strict;
use warnings;

use base 'DBIx::Class';

__PACKAGE__->load_components("Timestamper", "Core");
__PACKAGE__->table("entry");
__PACKAGE__->add_columns(
  "id",
  { data_type => "INT", default_value => undef, is_nullable => 0, size => 11 },
  "created",
  {
    data_type => "DATETIME",
    default_value => undef,
    is_nullable => 1,
    size => 19,
  },
  "modified",
  {
    data_type => "DATETIME",
    default_value => undef,
    is_nullable => 1,
    size => 19,
  },
  "feed",
  { data_type => "INT", default_value => undef, is_nullable => 1, size => 11 },
  "uuid",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 250,
  },
  "title",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 250,
  },
  "url",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 250,
  },
  "description",
  {
    data_type => "TEXT",
    default_value => undef,
    is_nullable => 1,
    size => 65535,
  },
  "currency",
  {
    data_type => "VARCHAR",
    default_value => undef,
    is_nullable => 1,
    size => 250,
  },
  "amount",
  {
    data_type => "DECIMAL",
    default_value => undef,
    is_nullable => 1,
    size => 20,
  },
  "dtstart",
  {
    data_type => "DATETIME",
    default_value => undef,
    is_nullable => 1,
    size => 19,
  },
  "dtend",
  {
    data_type => "DATETIME",
    default_value => undef,
    is_nullable => 1,
    size => 19,
  },
  "grantor",
  { data_type => "INT", default_value => undef, is_nullable => 1, size => 11 },
  "grantee",
  { data_type => "INT", default_value => undef, is_nullable => 1, size => 11 },
  "grant_vcard",
  { data_type => "INT", default_value => undef, is_nullable => 1, size => 11 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->belongs_to("feed", "Grantsfire::Schema::Feed", { id => "feed" });
__PACKAGE__->belongs_to("grantor", "Grantsfire::Schema::Vcard", { id => "grantor" });
__PACKAGE__->belongs_to("grantee", "Grantsfire::Schema::Vcard", { id => "grantee" });
__PACKAGE__->belongs_to(
  "grant_vcard",
  "Grantsfire::Schema::Vcard",
  { id => "grant_vcard" },
);
__PACKAGE__->has_many(
  "entry_tags",
  "Grantsfire::Schema::EntryTag",
  { "foreign.entry" => "self.id" },
);
__PACKAGE__->has_many(
  "old_entry_tags",
  "Grantsfire::Schema::OldEntryTag",
  { "foreign.entry" => "self.id" },
);


# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-05-12 22:27:20
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QMdJN+osZd3XCDXd2GJFQQ
# These lines were loaded from '/Users/cwest/Documents/Clients/GrantsFire/src/trunk/lib/Grantsfire/Schema/Entry.pm' found in @INC.# They are now part of the custom portion of this file# for you to hand-edit.  If you do not either delete# this section or remove that file from @INC, this section# will be repeated redundantly when you re-create this# file again via Loader!
package Grantsfire::Schema::Entry;

use strict;
use warnings;
use base qw/DBIx::Class/;

__PACKAGE__->many_to_many(tags => 'entry_tags', 'tag');

1;
# End of lines loaded from '/Users/cwest/Documents/Clients/GrantsFire/src/trunk/lib/Grantsfire/Schema/Entry.pm' 


# You can replace this text with custom content, and it will be preserved on regeneration
1;
